package com.superquan.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * @program: cloud2022
 * @description: 降级类-fallback
 * @author: superquan
 * @create: 2022-06-05 09:37
 **/
@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "----------PaymentFallbackService fall back-paymentInfo_OK,(⊙o⊙)";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "----------PaymentFallbackService fall back-paymentInfo_TimeOut,%>_<%";
    }
}
